<?php

namespace Fize\SBSPHP\PHP80\L02Attribute;

use Attribute;

/**
 * 注解定义
 */
#[Attribute]
class MyAttributes
{

    protected int $value;

    public function __construct($value)
    {
        $this->value = $value;
    }

    public function logClass($class): void
    {
        print "logClass:{$this->value}<br/>\r\n";
        print_r($class);
    }

    public function logFunction($function): void
    {
        print "logFunction:<br/>\r\n";
        print_r($function);
    }

    public function logMethod($method): void
    {
        print "logMethod:<br/>\r\n";
        print "MethodName:{$method}<br/>\r\n";
    }

    public function logProperty($property): void
    {
        print "logProperty:<br/>\r\n";
        print_r($property);
    }

    public function logConstant($constant): void
    {
        print "logConstant:<br/>\r\n";
        print_r($constant);
    }

    public function logParameter($parameter): void
    {
        print "logParameter:<br/>\r\n";
        print_r($parameter);
    }
}